package org.jeecg.modules.scm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.EnableDict;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: scm_cus_deputy_protocol
 * @Author: jeecg-boot
 * @Date: 2021-11-27
 * @Version: V1.0
 */
@Data
@TableName("scm_cus_deputy_protocol")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "代客协议对象", description = "代客协议对象")
public class ScmCusDeputyProtocol implements Serializable, EnableDict {
    private static final long serialVersionUID = 1L;

    /**
     * 代客协议ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "代客协议ID")
    private String id;
    /**
     * 客户号
     */
    @Excel(name = "客户号", width = 15)
    @ApiModelProperty(value = "客户号")
    private Integer cusNo;
    /**
     * 客户名称
     */
    @Excel(name = "客户名称", width = 15)
    @ApiModelProperty(value = "客户名称")
    private String cusName;
    /**
     * 核心企业号
     */
    @Excel(name = "核心企业号", width = 15)
    @ApiModelProperty(value = "核心企业号")
    @Dict(dictTable = "scm_cus_info", dicCode = "cus_no", dicText = "cus_name")
    private Integer coreCusNo;
    /**
     * 项目ID
     */
    @Excel(name = "项目ID", width = 15)
    @ApiModelProperty(value = "项目ID")
    private Integer itemId;
    /**
     * 项目名称
     */
    @Excel(name = "项目名称", width = 15)
    @ApiModelProperty(value = "项目名称")
    private String itemName;
    /**
     * 签订日期
     */
    @Excel(name = "签订日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "签订日期")
    private Date signTime;
    /**
     * 到期日期
     */
    @Excel(name = "到期日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "到期日期")
    private Date dueTime;
    /**
     * 内容
     */
    @Excel(name = "内容", width = 15)
    @ApiModelProperty(value = "内容")
    private String content;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**
     * 附件
     */
    @Excel(name = "附件", width = 15)
    @ApiModelProperty(value = "附件")
    private String accessory;
    /**
     * 最后修改用户
     */
    @ApiModelProperty(value = "最后修改用户")
    private String updateBy;
    /**
     * 最后修改时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "最后修改时间")
    private Date updateTime;
    /**
     * 建立用户
     */
    @ApiModelProperty(value = "建立用户")
    private String createBy;
    /**
     * 建立时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "建立时间")
    private Date createTime;
}
